package com.dykj.gghhlm.dto.request;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by 傅卓 on 2020/12/3 15:15
 */

@Data
@ApiModel(description = "接收注册参数")
public class RegisterDTO {
    //用户手机号
    @NotNull(message = "用户输入的手机号不可为空")
    @Size(max = 11,min = 11,message = "手机号必须为11位")
    @ApiModelProperty(example = "用户手机号码")
    private String userId;
    //用户输入的密码
    @NotBlank(message = "用户输入的注册密码不可为空")
    @Size(max = 8,min = 6,message = "用户输入的密码长度必须在6-8之间")
    @ApiModelProperty(example = "用户密码")
    private String password;
    //用户名称
    @ApiModelProperty(example = "用户名称")
    private String userName;
    //用户
    @ApiModelProperty(example = "其他")
    private String remark;
}
